package Assignment;

public class Test9 {
    public static void main(String[] args) {
        double mountian = 8844430;
        double paper = 0.1;

        int count = 0;

        for (double i = paper; i <mountian ; i*=2) {
            count++;
        }

        System.out.println(count);

         paper = 0.1;
         count = 0;
        while (paper < mountian){
            paper *=2;
            count++;
        }
        System.out.println(count);
    }
}
